﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChongJu.ModelManager.Rating
{
    public class RatingProcessDataModel
    {
        /// <summary>
        /// 分拣阶段
        /// </summary>
        public RatingStep RatingBatchStep { get; set; }

        /// <summary>
        /// 称重数据
        /// </summary>
        public List<LevelWeigth> WeightData { get; set; }

        public class LevelWeigth
        {
            /// <summary>
            /// 等级
            /// </summary>
            public int Level { get; set; }

            /// <summary>
            /// 等级代码
            /// </summary>
            public string LevelCode { get; set; }

            /// <summary>
            /// 重量
            /// </summary>
            public double Weigth { get; set; }

            /// <summary>
            /// 称重时间
            /// </summary>
            public DateTime? CreateTime { get; set; }
        }

        /// <summary>
        /// 分拣阶段
        /// </summary>
        public enum RatingStep
        {
            /// <summary>
            /// 等待分拣
            /// </summary>
            Waiting = 1,

            /// <summary>
            /// 分拣中
            /// </summary>
            Ratting = 2,

            /// <summary>
            /// 确认（分拣完成之后）
            /// </summary>
            Affirm = 3,
        }
    }
}
